clear all
*cd "/Users/michelletorres/Dropbox/3rdYearPaper/MSM_Final/Replication Files/Data"
use "DataStudent6573.dta", clear
gen caseID = V6
** DROP 2 duplicated cases
drop if caseID==1307
save "DataStudent6573.dta", replace

clear all
use "Final_Data_Parents.dta", clear
gen caseID = caseID65
merge 1:1 caseID using "DataStudent6573.dta"
set more off

**** Education: 3= HS + Non-college training, 4=Some College 5=College 6=More than college
gen educ_73 = V767+2

**** Race (1=White, 2=Black, 8=Other)
gen race_st73 = V753

*** Income
gen income_73 = V744
recode income_73 (90/99=.)
xtile qinc_73 =income_73, nquantiles(4)

*** Own a house (1=Owns a house, 0=Rent/Other/Weird responses)
gen ownhome_73 = V746
recode ownhome_73 (2/7=0) (9=.)

*** Marital status (0=Separated/Divorced/Widow/Never married, 1=Married/Living with sb)
gen marital_73 = V563
recode marital_73 (1/2=1) (3/6=0) (9=.)

**************************
*** POLITICAL VARIABLES **
**************************

*** Political interest (1=Most of the time, 2=Some of the time, 3=Only now and then, 4=Hardly at all)
gen polint_73 = V323
recode polint_73 (9=.)

*** Frequency of news (1=Daily, 2=2 times a week, 3=3 or 4 times a month, 4=few times a year/DK Freq, 5=Nothing
gen fnews_73 = V311
recode fnews_73 (7=4)

*** Party ID 
* Long (1=Strong Democrat, 2=Weak Democrat, 3=Leaner Democrat, 4=Independent, 5= Leaner Rep, 6=Weak Rep, 7=Strong Rep, 8=Other/Apolitical)
gen pid7_73 = V482+1
recode pid7_73 (8/9=8) (10=.)

* Short 
* Version 1: 1=Republican, 3=Neither, 5=Democrat
gen pids3_73 = V481
recode pids3_73 (0=.) (9=3)
* Version 2: (1=Democrat, 2=Neither, 3=Republican, 4=Other/Apolitical)
gen pid3_73 = pid7_73
recode pid3_73 (1/3=1) (5/7=3) (4=2)
replace pid3_73=4 if pid7_73==8

*** Pol Knowledge
gen polknow_73 = V760
recode polknow_73 (0=.)

*** Cosmopolitanism
gen cosmo_73 = V761
recode cosmo_73 (0=.)

*** Efficacy (External)
gen eff_73 = V755
recode eff_73 (9=.)


drop V1-V263 V265-V520 V522-V535 V537-V775
drop pid7_73 pids3_73
rename V264 caseID73

save "Final_Data_Students_6573.dta", replace

